﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link rel="shortcut icon" href=@Url.Content("~/favicon.ico") type="image/x-icon">
    <link rel="icon" href=@Url.Content("~/favicon.ico") type="image/x-icon">
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Views/Site.js")" type="text/javascript"></script>
     @RenderSection("Scripts", required: false)

     <script type="text/javascript">
         SetAutoCompleteUrls('@(Url.Action("SearchByAutocomplete","Search"))','@(Url.Action("Search","Search", new {id= " "},null))', '@(Url.Action("Index","Home", new {id=" "}))');
     </script>
</head>


<body>
    <div class="page">

        <div id="header">
            <div id="title">
                <h1>@Html.ActionLink("MovieDB", "Index", "Home", new {id = string.Empty}, null)</h1>
            </div>

            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            
            <div id="menucontainer">       
                 <ul id="menu">
                    
                    <li>@Html.ActionLink("Create", "Add", "Movie")</li>
                    <li>@Html.ActionLink("Categories", "Category", "Home")</li>
                    <li>@Html.ActionLink("Recent Movies", "MostRecentMovies", "Home")</li>
                    <li>@Html.ActionLink("Home", "Index", "Home", new {id = string.Empty}, null)</li>
                    <li style="float:left;">@Html.Partial("_Search")</li>
                </ul>
            </div>
        </div>

        <div id="main">
            @RenderBody()
            <div id="footer">
                @RenderSection("footer", false)
            </div>
        </div>
    </div>
</body>
</html>
